;;Open the evil mode
(evil-mode t)
(setcdr evil-insert-state-map nil)
(define-key evil-insert-state-map [escape] 'evil-normal-state)

;;evil surround mode configurations
(require 'evil-surround)
(global-evil-surround-mode)

(global-evil-leader-mode)
(evil-leader/set-key
  "ff" 'find-file
  "bb" 'switch-to-buffer
  "0"  'select-window-0
  "1"  'select-window-1
  "2"  'select-window-2
  "3"  'select-window-3
  "wr" 'split-window-right
  "wb" 'split-window-below
  ":"  'counsel-M-x
  "wd" 'delete-other-windows
  )
;;evil nerd commenter configurations
;;:(evilnc-default-hotkeys)
;;(define-key evil-normal-state-map (kbd ",/") 'evilnc-comment-or-uncomment-lines)
;;(define-key evil-visual-state-map (kbd ",/") 'evilnc-comment-or-uncomment-lines)

;;which key mode configurations
(which-key-mode t)


(require 'powerline)
(powerline-center-evil-theme)

(provide 'init-evil-leader-key)
